package org.makcro.sms.services.chat.base.business;

import java.util.List;

import org.apache.log4j.Logger;
import org.makcro.sms.services.chat.base.dao.SubscriberDao;
import org.makcro.sms.services.chat.model.Subscriber;

public class SubscriberService {

	private Logger			logger	= Logger.getLogger( SubscriberService.class );

	private SubscriberDao	subscriberDao;

	public List<Subscriber> search(int[] limits) {
		return this.subscriberDao.findAll( limits );
	}
	
	public Long getSearchCount(){
		return this.subscriberDao.findAllCount();
	}

	public void setSubscriberDao(SubscriberDao subscriberDao) {
		this.subscriberDao = subscriberDao;
	}
}
